/* pages/index/index.less */
@primary-color: #1890FF; // 更新主色
@secondary-color: #2c3e50;
@success-color: #52C41A;
@card-bg: #ffffff;
@text-color: #333;
@light-text: #666;
@background-color: #f5f7fa;

.container {
  padding: 20px; // 保持内边距
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e7f4 100%); // 保持渐变背景
  min-height: 100vh;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.container::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(24, 144, 255, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.container::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -30px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 30%, rgba(82, 196, 26, 0.1) 100%);
  z-index: 0;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 25px; // 保持外边距
  position: relative;
  z-index: 1;
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 18px; // 方形圆角设计更现代
  background: linear-gradient(135deg, @primary-color, #0050b3); // 优化渐变色
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-size: 30px;
  color: white;
  box-shadow: 0 6px 16px rgba(24, 144, 255, 0.3); // 增强阴影效果
}

.title {
  font-size: 22px; // 保持字体大小
  font-weight: 600; // 加粗字体
  color: @secondary-color;
  text-align: center;
  position: relative;
}

.title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: @primary-color;
  border-radius: 3px;
}

.intro-card {
  background-color: @card-bg;
  border-radius: 16px; // 保持圆角
  padding: 20px; // 减小内边距
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); // 保持阴影
  margin-bottom: 20px; // 减小外边距
  position: relative;
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(10px);
}

.intro-text {
  font-size: 14px; // 减小字体大小
  line-height: 1.8; // 调整行高
  color: @light-text;
  text-align: justify;
  font-weight: 300;
}

.action-btn {
  width: 85%;
  background: linear-gradient(135deg, @primary-color, #0050b3); // 保持渐变色
  color: white;
  border-radius: 30px; // 保持圆角
  font-size: 17px; // 保持字体大小
  font-weight: 600; // 保持字体粗细
  height: 45px; // 减小高度
  line-height: 45px;
  margin: 0 auto 20px; // 减小外边距
  box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4); // 保持阴影
  position: relative;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); // 保持过渡效果
  border: none;
}

.action-btn:active {
  transform: translateY(-2px); // 保持按下效果
  box-shadow: 0 8px 20px rgba(24, 144, 255, 0.6); // 保持阴影变化
}

.features {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px; // 减小间隙
  margin-bottom: 15px; // 减小外边距
  position: relative;
  z-index: 1;
}

.feature-item {
  flex: 1;
  min-width: 0;
  background-color: @card-bg;
  border-radius: 10px; // 减小圆角
  padding: 15px 8px; // 减小内边距
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); // 保持阴影
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); // 保持过渡效果
  border-top: 2px solid @primary-color; // 保持顶部边框
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(24, 144, 255, 0.03);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-item:active {
  transform: translateY(2px); // 保持按下效果
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
}

.feature-item:active::before {
  opacity: 1;
}

.feature-icon {
  font-size: 24px; // 减小图标大小
  margin-bottom: 8px; // 减小外边距
  color: @primary-color;
  transition: all 0.3s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(24, 144, 255, 0.08);
}

.feature-item:active .feature-icon {
  transform: scale(1.1);
}

.feature-title {
  font-size: 14px; // 减小字体大小
  font-weight: 600; // 保持字体粗细
  color: @secondary-color;
  margin-bottom: 3px; // 减小外边距
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.feature-desc {
  font-size: 11px; // 减小字体大小
  color: @light-text;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.share-tip {
  margin-top: 15px; // 减小外边距
  text-align: center;
  position: relative;
  z-index: 1;
  
  .share-text {
    font-size: 12px; // 减小字体大小
    color: @light-text;
    background-color: rgba(227, 242, 253, 0.7); // 保持背景不透明度
    padding: 8px 16px; // 减小内边距
    border-radius: 20px; // 保持圆角
    display: inline-block;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
}